﻿using 依赖注入案例练习;

namespace Microsoft.Extensions.DependencyInjection;

public static class ConfigExtensions
{
    public static void AddConfig(this IServiceCollection serviceCollection)
    {
        serviceCollection.AddScoped<IConfig, Config>();
    }
}